package com.yyy.controller;

import com.nanhang.common.util.R;
import com.yyy.service.IClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yyy
 * @since 2025-01-07
 */
@RestController
@RequestMapping("/classes")
public class ClassesController {
    @Autowired
    private IClassesService iClassesService;
    @GetMapping("/list")
    public R list(){
        return R.ok().data("list",iClassesService.list());
    }
}
